package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AdvCompanyMapper;
import com.ruoyi.domain.AdvCompany;
import com.ruoyi.service.IAdvCompanyService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-30
 */
@Service
public class AdvCompanyServiceImpl implements IAdvCompanyService
{
    @Autowired
    private AdvCompanyMapper advCompanyMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param advCompanyId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public AdvCompany selectAdvCompanyByAdvCompanyId(Long advCompanyId)
    {
        return advCompanyMapper.selectAdvCompanyByAdvCompanyId(advCompanyId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param advCompany 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<AdvCompany> selectAdvCompanyList(AdvCompany advCompany)
    {
        return advCompanyMapper.selectAdvCompanyList(advCompany);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param advCompany 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAdvCompany(AdvCompany advCompany)
    {
        return advCompanyMapper.insertAdvCompany(advCompany);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param advCompany 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAdvCompany(AdvCompany advCompany)
    {
        return advCompanyMapper.updateAdvCompany(advCompany);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param advCompanyIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAdvCompanyByAdvCompanyIds(Long[] advCompanyIds)
    {
        return advCompanyMapper.deleteAdvCompanyByAdvCompanyIds(advCompanyIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param advCompanyId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAdvCompanyByAdvCompanyId(Long advCompanyId)
    {
        return advCompanyMapper.deleteAdvCompanyByAdvCompanyId(advCompanyId);
    }
}
